gnttab: don't use domain lock for serialization
authorJan Beulich <JBeulich@suse.com>
Wed, 30 May 2012 08:22:17 +0000 (09:22 +0100)
committerJan Beulich <JBeulich@suse.com>
Wed, 30 May 2012 08:22:17 +0000 (09:22 +0100)
commite26560a4b056dad6d85ffd9ebfad9565f210a9cc
treef5577e0d7730bb6cf4a2ff0d908504fab848127c
parent346e974dcabe907927d6169c5db936ffec19358b
gnttab: don't use domain lock for serialization

Instead use the affected domain's grant table lock, at once reducing
the scopes during which locks are being held and hence allowing
significantly better parallelism.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Andrew Thomas <andrew.thomas@oracle.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/mm.c
xen/common/grant_table.c